package com.hongdee.base.carconfigure.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.base.carconfigure.dao.ICarConfigureDao;
import com.hongdee.base.carconfigure.entity.TBcCarConfigure;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 名  称:ICarConfigureDaoImpl
 * 类  型:class
 * 描  述:
 * 路  径:com.hongdee.base.carconfigure.dao.impl
 * 作  者: 术洪超
 * 日  期:2017-05-18 11:16
 */
@Service
public class CarConfigureDaoImpl extends BaseDaoImpl implements ICarConfigureDao {
    @Override
    public TBcCarConfigure info(String id) throws Exception {
        String hql="from TBcCarConfigure where id=:id";
        Map<String,Object> map=new HashMap<>();
        map.put("id",id);
        return (TBcCarConfigure) this.getHibernateDao().findEntityByHqlWithParams(hql,map);
    }
}
